import axios from 'axios'
import { Toast } from 'vant'

const service = axios.create({
  baseURL: process.env.VUE_APP_BASE_API
})

// 响应拦截
service.interceptors.response.use(response => {
  return response
}, err => {
  Toast(err.message)
  Promise.reject(err)
})

export default service
